package com.example.xm.adapter.HomeAdapter;

import android.content.Context;
import android.widget.TextView;

import com.example.xm.R;
import com.example.xm.base.BaseAdapter;
import com.example.xm.bean.HomeBean.HomeArticleDaShiJianBean;

import java.util.List;

public class Article_DaShiJianAdapter extends BaseAdapter {


    public Article_DaShiJianAdapter(Context context, List data) {
        super(context, data);
    }

    @Override
    protected int getLayout() {
        return R.layout.adapter_yanjin_item;
    }

    @Override
    protected void bindData(BaseViewHolder viewHolder, Object o) {
        TextView title = (TextView) viewHolder.getViewById(R.id.tv_title_anjin);
        TextView data = (TextView) viewHolder.getViewById(R.id.tv_data_yanjin);
        HomeArticleDaShiJianBean.DataBean bean = (HomeArticleDaShiJianBean.DataBean) o;
        title.setText(bean.getTitle());
        data.setText(bean.getContentDescribe());

    }
}
